package cn.zuo.utils;

import java.math.BigInteger;
import java.util.HashMap;
import java.util.Map;
/**
 * @Author 白白旧维
 * @Date 2021/7/7 11:13
 */
public class PublicKeyPool {//其他用户的公钥池
    private static Map<String, BigInteger> key_e = new HashMap<>();
    private static Map<String,BigInteger> key_n = new HashMap<>();
    private static Map<String,BigInteger> client_key_e = new HashMap<>();
    private static Map<String,BigInteger> client_key_n = new HashMap<>();

    public static Map<String, BigInteger> getClient_key_e() {
        return client_key_e;
    }

    public static Map<String, BigInteger> getClient_key_n() {
        return client_key_n;
    }

    public static BigInteger getClientKey_e(String name){
        return client_key_e.get(name);
    }

    public static void setClientKey_e(String name,BigInteger e){
        client_key_e.put(name,e);
    }

    public static BigInteger getClientKey_n(String name){
        return client_key_n.get(name);
    }

    public static void setClientKey_n(String name,BigInteger n){
        client_key_n.put(name,n);
    }

    public static BigInteger getKey_e(String name){
        return key_e.get(name);
    }

    public static void setKey_e(String name,BigInteger e){
        key_e.put(name,e);
    }

    public static BigInteger getKey_n(String name){
        return key_n.get(name);
    }

    public static void setKey_n(String name,BigInteger n){
        key_n.put(name,n);
    }

    public static Map<String, BigInteger> getKey_e() {
        return key_e;
    }

    public static Map<String, BigInteger> getKey_n() {
        return key_n;
    }

    public static void removeClientKey_e(String name){
        client_key_e.remove(name);
    }

    public static void removeClientKey_n(String name){
        client_key_n.remove(name);
    }

}
